﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class FormParent : Form
    {
        
        public FormParent()
        {
            InitializeComponent();

        }

        private void tsmPackages_Click(object sender, EventArgs e)
        {
            //declare new instance of FormPackages Class
            FormPackages pkgForm = new FormPackages();

            //set this window to the perent window
            pkgForm.MdiParent = this;

            //show the FormPackages Form
            pkgForm.Show();
        }

        private void tsmProducts_Click(object sender, EventArgs e)
        {
            //declare new instance of FormProducts Class
            FormProducts prodForm = new FormProducts();

            //set this window to the perent window
            prodForm.MdiParent = this;

            //show the FormProducts Form
            prodForm.Show();
        }

        private void tsmSuppliers_Click(object sender, EventArgs e)
        {
            //declare new instance of FormSuppliers Class
            FormSuppliers supForm = new FormSuppliers();

            //set this window to the perent window
            supForm.MdiParent = this;

            //show the FormSuppliers Form
            supForm.Show();


        }

        private void menuExitApp_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

         }
}
